package com.company.demo.handlers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


//定义拦截器的处理器
@Controller
public class SomeInterceptorHandler {
    @RequestMapping("/first/some")
    public @ResponseBody String someHandle(){
        return "/first/some";
    }
    @RequestMapping("/second/other")
    public @ResponseBody String otherHandle(){
        return "/second/other";
    }
}
